const MongoClient = require("mongodb").MongoClient;

const url = "mongodb://localhost:27017/runoob";

MongoClient.connect(url, function(err, db) {
  console.log("err", err);
  if (err) throw err;
  console.log("数据库已创建!");
  console.log(db);
  db.close();
});
